package com.heima.user.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.UserRelationDTO;
import com.heima.user.service.ApUserRelationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value =  "用户关注API",tags = "用户关注API")
@RequestMapping
public class UserRelationController {
  @Autowired
  ApUserRelationService apUserRelationService;

   @ApiOperation("关注 或 取关")
   ResponseResult follow(@RequestBody UserRelationDTO dto){
      return apUserRelationService.follow(dto);
   }

}
